// 导入express的请求响应对象
import { Request, Response, NextFunction } from "express";

// 用户登陆接口处理器
export const login = async (
	req: Request,
	res: Response,
	next: NextFunction
) => {
  const { name, password } = req.body;
  res.send({ message: `欢迎回来,${name}` });
};
